home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Tutorial Material
/
Basic Tutorial
/
mctest5
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
825b
|
32 lines
; tutorial example 5 - mctest5
(initdef)
(defsym a '(b c a))
(defsym b '(f e))
(defsym c '(b a))
(defsym d '(a g))
(def-symbol
test1 (gen-trans a 4)
test2 (gen-trans d 4)
test3 (gen-trans c 4)
test4 (gen-trans b 4)
)
(def-length
default '1/16
)
(setq tonals (activate-tonality (whole-tone c 5) (chromatic c 6)))
(setq tonals1 (activate-tonality (chromatic c 6) (whole-tone c 5)))
(compile-song-p "ccl;output:" 1/8 "part5"
; BARS |-------|-------|-------|-------|
changes tonals " . . . . ."
changes2 tonals1 " . . . . . . . ."
test1 changes "-- ----- --- --- ----- --"
test2 changes2 " --- --- -- - --- --- --- --"
test3 changes2 " ---- --- - - -- --- -- -"
test4 changes " ----- - - - -- - - - - -"
)